Goal:

Questions:

What does it mean to be correlated?

Background

Experiment

I created a simulation study to observe the co-evolutionary outcome of the newt-snake interaction with different genetic architectures (GAs) in a spatial setting. I hypothesized that we would see an interaction (co-evolutionary arms race) between newt and snake phenotype under some GA combinations when newts and snakes were evolving over geographical space. Each GA is paired with another GA creating 16 combinations.

GA1 experiment values:

Each GA combination and trial has its own msprime simulation, but the msprime file is shared between the 5 section and 7 section slim runs.

The data

## All cor, lit, and grid files exist!
## This program will now end!

Mean Phenotype Whole Simulation

Phenotype differences

Table of average Differences

##                    Group.1           x
## 1  1e-08_0.005_1e-08_0.005  0.12599566
## 2   1e-08_0.005_1e-09_0.05 -2.99404049
## 3    1e-08_0.005_1e-10_0.5 -2.68700104
## 4      1e-08_0.005_1e-11_5 -1.34647579
## 5   1e-09_0.05_1e-08_0.005  2.65443447
## 6    1e-09_0.05_1e-09_0.05  0.85011938
## 7     1e-09_0.05_1e-10_0.5 -0.12460083
## 8       1e-09_0.05_1e-11_5  0.54366542
## 9    1e-10_0.5_1e-08_0.005  2.55989115
## 10    1e-10_0.5_1e-09_0.05  0.98832091
## 11     1e-10_0.5_1e-10_0.5  0.65558790
## 12       1e-10_0.5_1e-11_5  1.43447782
## 13     1e-11_5_1e-08_0.005  1.34948606
## 14      1e-11_5_1e-09_0.05  0.16704123
## 15       1e-11_5_1e-10_0.5  0.04911616
## 16         1e-11_5_1e-11_5  0.57754412

Connection between higher phenotype and population

Phenotype differences

Phenotype & Populationsize differences

Correlation

cor

Correlation Histograms

Plot 1

Plot 2

Plot 3

Plot 4

Plot 5

Plot 6

Plot 7

Plot 8

Plot 9

Plot 10

Correlation across time

Random 1

## [1] "pattern 1e-11_5_1e-08_0.005_2"
## [1] "Cor between average snake pheno and local cor 0.300025813209512"
## [1] "Cor between average newt pheno and local cor 0.391094143014956"
## [1] "Cor between average dif pheno and local cor 0.26562390529358"
## [1] "Cor between newt pheno and snake 0.419432020250361"

Random 2

## [1] "pattern 1e-10_0.5_1e-08_0.005_2"
## [1] "Cor between average snake pheno and local cor -0.169001763942709"
## [1] "Cor between average newt pheno and local cor -0.478239721209977"
## [1] "Cor between average dif pheno and local cor -0.114522560012287"
## [1] "Cor between newt pheno and snake -0.0420156874750302"

Random 3

## [1] "pattern 1e-09_0.05_1e-11_5_3"
## [1] "Cor between average snake pheno and local cor 0.778995444604787"
## [1] "Cor between average newt pheno and local cor 0.623892614646187"
## [1] "Cor between average dif pheno and local cor 0.762799491407346"
## [1] "Cor between newt pheno and snake 0.812025199893343"

What happens over time (looking at the beginning, middle, and late part of my simulations)

Pheno Beginning

Pheno Middle

Pheno End

Dif Beginning

Dif Middle

Dif End

Summary

Early-Sim Population Size Summary

Mid-Sim Population Size Summary

Late-Sim Population Size Summary

Early Difference Summary

Mid Difference Summary

Late Difference Summary

By Snake GA (Early)

By Snake GA (Mid)

By Snake GA (Late)

By Newt GA (Early)

By Newt GA (Mid)

By Newt GA (Late)

Heatmap

Population Size (Early)

Population Size (Mid)

Population Size (Late)

Phenotype (Early)

Phenotype (Mid)

Phenotype (Late)

What is up with the correlations

Early Simulation Correlation

Mean

## [1] -0.02472094

Max

## [1] -0.08851926

Min

## [1] 0.2513006

popsize

## [1] 0.4567731

Late Simulation Correlation

Mean

## [1] 0.3738276

Max

## [1] 0.02574334

Min

## [1] 0.2962002

Pop size

## [1] 0.2933614